var { friends } = require('../config/index.js'),
  { uFindColorsClick, uIsFindColors } = require('../util/index.js');

module.exports = function () {
  while (uFindColorsClick([friends.point])) break;
  sleep(1500);
  log('进入访问基建！');
  toast('进入好友列表');
  while (uIsFindColors([friends.list], 0)) {

    sleep(2000);
    click(1021, 159);
    break;
  };
  sleep(5000);
  for (let i = 0; i < 10; i++) {
    click(friends.next.x, friends.next.y);
    sleep(5000);
    if (uIsFindColors([friends.end], 0)) break;
  }
  toast('好友寻访完成！');
  log('好友寻访完成！');
  return;
}
